package com.ruoyi.common.constant;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public interface Constants {

    /**
     * UTF-8 字符集
     */
    String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    String GBK = "GBK";

    /**
     * www主域
     */
    String WWW = "www.";

    /**
     * http请求
     */
    String HTTP = "http://";

    /**
     * https请求
     */
    String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    String FAIL = "1";

    /**
     * 登录成功
     */
    String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    String LOGOUT = "Logout";

    /**
     * 注册
     */
    String REGISTER = "Register";

    /**
     * 登录失败
     */
    String LOGIN_FAIL = "Error";

    /**
     * 验证码有效期（分钟）
     */
    Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    String TOKEN = "token";


    /**
     * 心跳
     */
    String MSG_PING = "0";

    /**
     * 链接就绪
     */
    String MSG_READY = "1";

    /**
     * 消息
     */
    String MSG_MESSAGE = "2";

    String MESSAGE_TYPE_FRIEND = "0";

    /**
     * 项目名称
     */
    String PROJECT_NAME = "";

    /**
     * 星级提醒
     */
    String MESSAGE_STAR = PROJECT_NAME + "message_star";

    /**
     * 公告提醒
     */
    String MESSAGE_NOTICE = PROJECT_NAME + "message_notice";

    /**
     * 分配超额提醒
     */
    String DIS_MESSAGE = PROJECT_NAME + "dis_message";

    /**
     * 下推消息提醒
     */
    String MESSAGE_PUSH = PROJECT_NAME + "message_push";

    /**
     * 渠道推送-管理员
     */
    String CHANNEL_PUSH_DIS_ADMIN = PROJECT_NAME + "channel_push_dis_admin";

    /**
     * 渠道推送-管理员
     */
    String CHANNEL_PUSH_DIS_BUS = PROJECT_NAME + "channel_push_dis_bus";

    /**
     * 备忘录消息提醒
     */
    String MESSAGE_MEMO_RECORD = PROJECT_NAME + "message_memo_record";

    /**
     * 主管点评
     */
    String MESSAGE_COMMENT_RECORD = PROJECT_NAME + "message_comment_record";
    /**
     * 业务员
     */
    String SALESMAN = "salesman";

    /**
     * 公司组织id
     */
    String COMPANY_ID = "100";

    /**
     * vip 用户标识
     */
    String VIP_USER = "vip:user:%s";

    /**
     * 最大vip数量key
     */
    String MAX_VIP_NUMBER = "max.vip.number";

    /**
     * 业务员标识
     */
    String SALESMAN_ROLEKEY_TYPE = "salesman.rolekey.type";

    /**
     * 系统回收标识
     */
    String RECOVER_FLAG = "recover.customer.flag";

    /**
     * 系统轮转标识
     */
    String ROTATE_FLAG = "rotate.customer.type";

    /**
     * 系统轮转标识
     */
    String ROTATE_FLAG_SWITCH = "rotate.customer.switch";

    /**
     * 备忘录提醒
     */
    String MEMO_RECORD = "memo.record.remind";

    /**
     * 点评消息
     */
    String COMMENT_RECORD = "comment.record.info";

    /**
     * IP授权
     */
    String IP_INFO_RECORD = PROJECT_NAME + "ip.info.record";


    String RESOURCE_PREFIX = "/profile";


    String TMPTABLENAME = "tmp_custorm_";
}

